package com.yike.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yike.user.entity.AgentAreaSetting;
import com.yike.user.param.AgentAreaSettingPageParam;

import com.yike.user.vo.AgentAreaInfoVo;
import com.yike.user.vo.AgentAreaVo;
import com.yike.user.vo.AreaInfoVo;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.Max;
import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * 代理商区域配置表 Mapper 接口
 *
 * @author Sakura
 * @since 2024-09-13
 */
@Mapper
public interface AgentAreaSettingMapper extends BaseMapper<AgentAreaSetting> {

    List<AgentAreaVo> getAgentAreaSetting(@Param("agentId") Long agentId);

    AreaInfoVo getAgentArea(@Param("code") String code);

    Set<AreaInfoVo> getChildrenAreasByCode(@Param("code") String code);

    Set<AreaInfoVo> getAgentAllAreas(@Param("agentId") Long agentId);

}
